#ifndef TALKWINDOW_H
#define TALKWINDOW_H

#include <QWidget>
#include <QVector>

namespace Ui {
class talkwindow;
}

class talkwindow : public QWidget
{
    Q_OBJECT

public:
    explicit talkwindow(QWidget *parent = nullptr);
    ~talkwindow();
    void append_show_recv_message(uint32_t ID, QString &message);
    void flush_client_info(QVector<QPair<uint32_t, QString>> &ID_user);
signals:
    // notify close signal
    emit void go_closed();
    emit void send_talk_msg(uint32_t userID, QString sendStr);
    //emit void logup_new_user(QString user, QString passwd);

private slots:
    void on_pushButtonClose_clicked();

    void on_pushButtonSend_clicked();

private:
    Ui::talkwindow *ui;
    QVector<QPair<uint32_t, QString>> ID_user;
};

#endif // TALKWINDOW_H
